package com.yvdedu.hospital.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yvdedu.hospital.entity.Drug;
import com.yvdedu.hospital.mapper.PharmacyMapper;
import com.yvdedu.hospital.service.PharmacyService;

@Service
public class PharmacySer implements PharmacyService {

	@Resource
	PharmacyMapper pharmacyMapper;

	@Override
	public List<Drug> drugquery() {
		List<Drug> list = pharmacyMapper.drugquery();
		
		return list;
	}

	@Override
	public List<Drug> drugSearch(String name) {
		List<Drug> list = pharmacyMapper.drugSearch(name);
		return list;
	}

}
